﻿<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
    <title>职工书屋信息化管理系统</title>
  
      
 <style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;	
	margin-bottom: 0px;
}

 

.btnFont{

color:#005e5e;
font-size:12px;
font-family:"宋体";
font-weight:normal;
 
margin-top:-2px;
}

.btnFont2{

color:#FFF;
font-size:14px;
font-family:"宋体";
font-weight:normal;
 
}

.btnFont22{

color:#005e5e;
font-size:14px;
font-family:"宋体";
font-weight:normal;
 
width:88px;
height:40px;
margin-bottom:  0px;
border: 1px solid #FFF;background: #FFF;
    -moz-border-radius: 3px;      /* Gecko browsers */
    -webkit-border-radius: 3px;   /* Webkit browsers */
    border-radius:3px;            /* W3C syntax */
 

}

.btnFont_disable{

color:gray;
font-size:14px;
font-family:"宋体";
font-weight:normal;
}

.btnFont3{

color:#005e5e;
font-size:14px;
font-family:"宋体";
font-weight:normal;
 
background-image:url(images2/ff_24.jpg);background-repeat:no-repeat; width:88px;
cursor:hand;
}

.btnImg{
}

		.header
    {
        background:url(../resources/images/95598/top_bg.jpg) repeat-x 0 -1px; 
         cursor:'hand';
    }
      
     
    
    
     .bt1_mini
    {
        background:url(../resources/images/icons/Notes_Large.png) no-repeat;width:16px;height:16px;background-size:16px 16px;
    }
    .bt2_mini
    {
        background:url(../resources/images/icons/Reports_Large.png) no-repeat;width:16px;height:16px;background-size:16px 16px;
    }
    .bt3_mini
    {
        background:url(../resources/images/icons/history.png) no-repeat;width:16px;height:16px;background-size:16px 16px;
    }
    .bt4_mini
    {
        background:url(../resources/images/icons/id-card.png) no-repeat;width:16px;height:16px;background-size:16px 16px;
    }
    

 
-->
</style>
<link href="../resources/css/top.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="../resources/scripts/project/start.js"></script> 
<link href="../resources/scripts/easy/themes/stategrid1/easyui.css" rel="stylesheet" type="text/css" /> 


<style>

.accordion {
  overflow: hidden;
  border-width: 1px;
  border-style: solid;
}
.accordion .accordion-header {
  border-width: 0 0 1px;
  cursor: pointer;
}
.accordion .accordion-body {
  border-width: 0 0 1px;
}
.accordion-noborder {
  border-width: 0;
}
.accordion-noborder .accordion-header {
  border-width: 0 0 1px;
}
.accordion-noborder .accordion-body {
  border-width: 0 0 1px;
}
.accordion-collapse {
  background: url('images/accordion_arrows.png') no-repeat 0 0;
}
.accordion-expand {
  background: url('images/accordion_arrows.png') no-repeat -16px 0;
}
.accordion {
  background: #ffffff;
  border-color: #7bb6b4;
}
.accordion .accordion-header {
  background: #d9eeeb;
  filter: none;
   height: 26px;
  background-image:url(images2/s_30.jpg);background-repeat:no-repeat;
}
.accordion .accordion-header-selected {
  background: #f9e9bd;
  height: 26px;
  background-image:url(images2/s_344.jpg);background-repeat:no-repeat;
}
.accordion .accordion-header-selected .panel-title  {
  color: #000000; 
  font-size:14px;
  font-family:"宋体";
  font-weight:normal;
  margin-top:0px;
  margin-left:50px;
}    
 
.accordion .accordion-header .panel-title {
  color: #000000; 
  font-size:14px;
  font-family:"宋体";
  font-weight:normal;
  margin-top:0px;
  margin-left:50px;
  line-height: 26px;
}  

</style>     
 
 
  
 
 
	<link rel="stylesheet" href="css/zTreeStyle/zTreeStyle.css" type="text/css">
	 
	<script type="text/javascript" src="js/jquery.ztree.core-3.5.js"></script>
 
 
 	<style type="text/css">
		.ztree li span.button.pIcon01_ico_open{margin-right:2px; background: url(css/zTreeStyle/img/diy/1_open.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}
		.ztree li span.button.pIcon01_ico_close{margin-right:2px; background: url(css/zTreeStyle/img/diy/1_close.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}
		.ztree li span.button.pIcon02_ico_open, .ztree li span.button.pIcon02_ico_close{margin-right:2px; background: url(css/zTreeStyle/img/diy/2.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}
		.ztree li span.button.icon01_ico_docu{margin-right:2px; background: url(css/zTreeStyle/img/diy/3.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}
		.ztree li span.button.icon02_ico_docu{margin-right:2px; background: url(css/zTreeStyle/img/diy/4.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}
		.ztree li span.button.icon03_ico_docu{margin-right:2px; background: url(css/zTreeStyle/img/diy/5.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}
		.ztree li span.button.icon04_ico_docu{margin-right:2px; background: url(css/zTreeStyle/img/diy/6.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}
		.ztree li span.button.icon05_ico_docu{margin-right:2px; background: url(css/zTreeStyle/img/diy/7.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}
		.ztree li span.button.icon06_ico_docu{margin-right:2px; background: url(css/zTreeStyle/img/diy/8.png) no-repeat scroll 0 0 transparent; vertical-align:top; *vertical-align:middle}
	</style>
</head>

<body id='bbb' class="easyui-layout">
	<div data-options="region:'north',border:false"   height="116">

		<table width="100%" border="0" class="kj_head_bg">
  <tr>
    <td>

    <table width="100" border="0" align="right" valign=middle cellpadding="0" cellspacing="0">
      <tr>
      <!--   <td   align="center"><div class="btnImg"><img src="images2/s1.fw.png" alt=""  /></div></td>
        <td   align="left"><div class="btnFont"  >你好，欢迎测试账号！</div></td> -->
        <!--<td  width=20px; align="center"><img src="images2/f_04.jpg" alt="" width="6" height="63" /></td>
         
         <td   align="center"><div class="btnImg"><img src="images2/s2.fw.png" alt=""  /></div></td>
        <td   align="center">
        
        <a href="javascript:void(0)" id="mb" class="easyui-menubutton"     
        data-options="menu:'#mm'"   style="margin-top:-3px;" ><font color=#005e5e>视图模式</font></a>   
		<div id="mm" style="width:100px;">   
		    <div  >浏览模式</div>   
		    <div  >操作模式</div>   
		     
		</div> 
        </td>-->
        <td  width=20px; align=""center""><img src="images2/f_04.jpg" alt="" width="6" height="63" /></td>
        
       <!--   <td   align="center"><div class="btnImg"><img src="images2/s3.fw.png" alt=""  /></div></td>
        <td     align="center"><div class="easyui-linkbutton" data-options="plain:true"  style="margin-top:-3px;" ><font color=#005e5e>帮&nbsp;&nbsp;助</font></div></td>
        <td width=20px;  align="center"><img src="images2/f_04.jpg" alt="" width="6" height="63" /></td>
        
 -->         <td align="center" style="width:30px"><div class="btnImg"><img src="images2/s4.fw.png" alt=""  /></div></td>
        <td  align="center" style="width:30px"><div class="easyui-linkbutton" data-options="plain:true" style="margin-top:-3px;" ><font color=#005e5e><a href="../main/logout.jsp?id=1" style="text-decoration:none;">退&nbsp;&nbsp;出</a></font></div></td>
         
         
        </tr>
    </table>
    
    </td>
  </tr>
</table>
<div width="100%"  id="top_row"   ></div>
	 
	</div>
	<div id="sss2" data-options="region:'west',split:false" style="width:228px;margin-top:2px; ">
	<div  id="leftAccordion" class="easyui-accordion" data-options="fit:true,border:false"  >
	</div>
	 </div>
	<div data-options="region:'center',border:false"  >
	<div id="main-tabs" data-options="border:false,plain:true,tabHeight:38,fit:true" class="easyui-tabs"  >
		<div title="欢迎页面" style="padding:10px" data-options="href:'welcome.html'">
			 
		</div>
		 
	</div>
	</div>
	
<div id="addDlg" ></div>
<script type="text/javascript">
 /*  function banBackSpace(e){   
     var ev = e || window.event;//获取event对象   
	var obj = ev.target || ev.srcElement;//获取事件源   
	var t = obj.type || obj.getAttribute('type');//获取事件源类型  
	//获取作为判断条件的事件类型
	var vReadOnly = obj.getAttribute('readonly');
	//处理null值情况
	vReadOnly = (vReadOnly == "") ? false : vReadOnly;
	//当敲Backspace键时，事件源类型为密码或单行、多行文本的，
	//并且readonly属性为true或enabled属性为false的，则退格键失效
	var flag1=(ev.keyCode == 8 && (t=="password" || t=="text" || t=="textarea") && vReadOnly=="readonly")?true:false;
	//当敲Backspace键时，事件源类型非密码或单行、多行文本的，则退格键失效
	var flag2=(ev.keyCode == 8 && t != "password" && t != "text" && t != "textarea")?true:false;        
	//判断
	if(flag2){
	     return false;
	}
	if(flag1){   
	     return false;   
	}    
}
window.onload=function(){
	//禁止后退键 作用于Firefox、Opera
	document.onkeypress=banBackSpace;
	//禁止后退键  作用于IE、Chrome
	document.onkeydown=banBackSpace;
}  */
$(document).keydown(function (e) {  
	  
    var doPrevent;  
      
    // for IE && Firefox  
    var varkey = (e.keyCode) || (e.which) || (e.charCode);  
      
    if (varkey == 8) {  

        var d = e.srcElement || e.target;   

        if (d.tagName.toUpperCase() == 'INPUT' || d.tagName.toUpperCase() == 'TEXTAREA') {  

            doPrevent = d.readOnly || d.disabled;  

            // for button,radio and checkbox  
            if (d.type.toUpperCase() == 'SUBMIT'  
                || d.type.toUpperCase() == 'RADIO'  
                || d.type.toUpperCase() == 'CHECKBOX'  
                || d.type.toUpperCase() == 'BUTTON') {  

                doPrevent = true;  
            }  
        }  
        else {  

            doPrevent = true;  
        }  
    }  
    else {  

        doPrevent = false;  
    }  

if (doPrevent)  

    e.preventDefault();  
}); 
/* $(document).keydown(function(e){
    var target = e.target ;
    var tag = e.target.tagName.toUpperCase();
    if(e.keyCode == 8){
     if((tag == 'INPUT' && !$(target).attr("readonly"))||(tag == 'TEXTAREA' && !$(target).attr("readonly"))){
      if((target.type.toUpperCase() == "RADIO") || (target.type.toUpperCase() == "CHECKBOX")){
       return false ;
      }else{
       return true ;
      }
     }else{
      return false ;
     }
    }
});  */
/* window.onload=function(){  
    
    document.getElementsByTagName("body")[0].onkeydown =function(){  
          
        //获取事件对象  
        var elem = event.relatedTarget || event.srcElement || event.target ||event.currentTarget;   
          
        if(event.keyCode==8){//判断按键为backSpace键  
          
                //获取按键按下时光标做指向的element  
                var elem = event.srcElement || event.currentTarget;   
                  
                //判断是否需要阻止按下键盘的事件默认传递  
                var name = elem.nodeName;  
                  
                if(name!='INPUT' && name!='TEXTAREA'){  
                    return _stopIt(event);  
                }  
                var type_e = elem.type.toUpperCase();  
                if(name=='INPUT' && (type_e!='TEXT' && type_e!='TEXTAREA' && type_e!='PASSWORD' && type_e!='FILE')){  
                        return _stopIt(event);  
                }  
                if(name=='INPUT' && (elem.readOnly==true || elem.disabled ==true)){  
                        return _stopIt(event);  
                }  
            }  
        }  
    }  
function _stopIt(e){  
        if(e.returnValue){  
            e.returnValue = false ;  
        }  
        if(e.preventDefault ){  
            e.preventDefault();  
        }                 
  
        return false;  
} */
</script>
<script type="text/javascript">
var setting = {
		view: {
				showLine: false
				//fontCss: getFont
		},
			 
		data: {
			simpleData: {   
				enable: true
			}
		}, 
		callback: { 
			onMouseDown: onMouseDown
		}

	
	};
function cascadeTree( xmlTreeNode, ztreeArray,_i,expandLevel){
	   
	 
    var obj=xmlTreeNode.childNodes;
    if(obj){
  	  var expend=false;
	    
	  for(var i=0;i<obj.length;i++){

		  if(i==0){
			  if(!expandLevel[1])expandLevel[1]=0;
      			expandLevel[1]=expandLevel[1]+1;
      			if(expandLevel[1]<expandLevel[0]) expend=true;

			  }
		 
		  var onode=obj[i];
		  var _text=onode.getAttribute("text");

		  if("查询我的个人信息"==_text||"我的个性化菜单"==_text||"管理人力资源组织结构"==_text||"组织结构回溯"==_text){
			    
              continue;
		   }
		  
		  if(_text.length>11){ _text=(_text.substr(0,11))+".."  ;}
		  if(expend){
		  ztreeArray.push({ id:onode.getAttribute("id") ,open:true, pId:_i, name:_text,uurl:onode.getAttribute("url"),pnode:xmlTreeNode.getAttribute("id"),tget:onode.getAttribute("targetframe"),iconImg:onode.getAttribute("iconImg"),icon:'../resources/images/icons/16/Outline.ico',iconOpen:"../resources/images/icons/16/Folder.ico", iconClose:"../resources/images/icons/16/Folder-Closed.ico" });
		  } else
		  ztreeArray.push({ id:onode.getAttribute("id") , pId:_i, name:_text,uurl:onode.getAttribute("url"),pnode:xmlTreeNode.getAttribute("id"),tget:onode.getAttribute("targetframe"),iconImg:onode.getAttribute("iconImg") ,icon:'../resources/images/icons/16/Outline.ico',iconOpen:"../resources/images/icons/16/Folder.ico", iconClose:"../resources/images/icons/16/Folder-Closed.ico" });
		    
		 cascadeTree(onode,ztreeArray,onode.getAttribute("id"),expandLevel); 
	 } }
    
}
	
</script>
<script type="text/javascript">
function addTab(_tile,_icon,_url){
	
	var _tab=$('#main-tabs').tabs("getTab",_tile);
	 alert(_tab)
	if(_tab){
		
		$('#main-tabs').tabs("select",_tile);
		
	}else{
		
		$('#main-tabs').tabs('add',{
		    title:_tile,
		    height:'900px',
		    //href:_url,
		    //cache:false,
		    content:'<iframe scrolling="yes"   border="0"     frmeborder="0" src="'+_url+'" style="width:100%;height:100%;border:0;"></iframe>',
		    closable:true
		    
		});

	}

}

</script>
<script>
var parseXml;

if (typeof window.DOMParser != "undefined") {
    parseXml = function(xmlStr) {
        return ( new window.DOMParser() ).parseFromString(xmlStr, "text/xml");
    };
} else if (typeof window.ActiveXObject != "undefined" &&
       new window.ActiveXObject("Microsoft.XMLDOM")) {
    parseXml = function(xmlStr) {
        var xmlDoc2 = new window.ActiveXObject("Microsoft.XMLDOM");
        xmlDoc2.async = "false";
        xmlDoc2.loadXML(xmlStr);
        return xmlDoc2;
    };
} else {
    throw new Error("No XML parser found");
}
function loadData (url,param) {
    var xmlDoc;
  /*
    if(window.ActiveXObject){
    	xmlDoc=new ActiveXObject("Msxml.DOMDocument");
    }else{
    	var domparser = new DOMParser();
    	 
    	xmlDoc = domparser.parseFromString(url, "text/xml");  
    } 
     
	xmlDoc.async = false;
	xmlDoc.preserveWhiteSpace = true;
	if (param == null)
	{
		var restr=/>\s</g;
		url=url.replace(restr,"");
	  xmlDoc.loadXML(url);
	 }
	else
	   xmlDoc.load(url);
	*/
	xmlDoc=parseXml(url);
	if(xmlDoc.childNodes[0]!=null){

		var _rsNodes=xmlDoc.childNodes[0];

        //=================剔除灰色 但用户拥有的权限=====================
		var _removeNode__=[]; 
		for(var i=0;i<_rsNodes.childNodes.length;i++){
			var onode=_rsNodes.childNodes[i]; 
			 
			if(onode.getAttribute("targetframe")=='disabled'){
		        //判断是否有权限，如果没有就用灰色表示
		        var isIgnor=false;
		        for(var _mmx=0;_mmx<_rsNodes.childNodes.length;_mmx++){
		        	var _mmxNode=_rsNodes.childNodes[_mmx];
		        	if(_mmxNode.getAttribute("text")==onode.getAttribute("text")&&_mmxNode.getAttribute("targetframe")!='disabled'){
		        		isIgnor=true; 
		            }
		        	
		        }
		        if(isIgnor)_removeNode__.push(onode);//表示有权限 就不用灰色来表示了 
		    } 
		}
		for(var i=0;i<_removeNode__.length;i++){ 
			_rsNodes.removeChild(_removeNode__[i]);
		}
		 //=================剔除灰色 但用户拥有的权限=====================
		 
		return _rsNodes;

	}
	return null;
}
var _data='<xmlmenu>'+
 /* 内容管理菜单  开始*/
'<menu id="01100" url="../ggl/index.jsp" text="内容管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false">'+
 	'<menu id="01101" url="../ggl/index.jsp" text="内容管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false">'+
		'<menu id="01102" url="../ggl/index.jsp" text="热门公告" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt1"/>'+
		/* '<menu id="01103" url="../xwzx/index.jsp" text="新闻资讯" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt2"/>'+ */
		'<menu id="01104" url="../bddt/index.jsp" text="本地动态" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt3"/>'+
		'<menu id="01105" url="../swkx/index.jsp" text="通知" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt4"/>'+
		/* '<menu id="01106" url="../sxzx/index.jsp" text="书讯中心" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt5"/>'+ */
	'</menu>'+ 
	'<menu id="01201" url="" text="信息推送管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false">'+
		'<menu id="01202" url="../mpmm/index.jsp" text="推送信息管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt1"/>'+
		'<menu id="01203" url="../mgword/index.jsp" text="敏感词管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_mgc"/>'+
		'<menu id="01204" url="../messagestat/index.jsp" text="推送信息统计" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt2"/>'+
	'</menu>'+
	'<menu id="01501" url="../ggl/index.jsp" text="其他管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" >'+
		'<menu id="01502" url="../tspl/index.jsp" text="图书评论管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt17"/>'+
		'<menu id="01503" url="../dzspl/index.jsp" text="电子书评论管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt18"/>'+
		'<menu id="01504" url="../zppl/index.jsp" text="作品评论管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt19"/>'+
		/* '<menu id="01505" url="../rwmm/index.jsp" text="二维码管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt20"/>'+
		'<menu id="01506" url="../yqlj/index.jsp" text="友情链接管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt21"/>'+
		'<menu id="01507" url="../hotword/index.jsp" text="热搜词汇管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt22"/>'+
		'<menu id="01508" url="../sytp/index.jsp" text="推广图维护" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt23"/>'+ */
		'<menu id="01509" url="../bookhouse/index.jsp" text="书屋图片更换" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt21"/>'+	
		'<menu id="015010" url="../yhjy/index.jsp" text="用户建议" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt22"/>'+
	'</menu>'+
'</menu>'+
/* 内容管理菜单  结束*/

/* 资源库管理 开始*/
'<menu id="02101" url="../ordergl/index.jsp" text="资源库管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false">'+
	'<menu id="02102" url="../ordergl/index.jsp" text="定制阅读" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt24">'+
		'<menu id="02103" url="../dzzyk/index.jsp" text="资源库" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt25"/>'+
		'<menu id="02104" url="../dzorder/index.jsp" text="定制订单管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt26"/>'+
		'<menu id="02105" url="../ordersh/index.jsp" text="订单审核开通" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt27"/>'+
		'<menu id="02106" url="../ordertj/index.jsp" text="定制统计分析" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt28"/>'+
		'<menu id="02107" url="../dzorderscan/index.jsp" text="资源权限查询" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_quanxian"/>'+
	'</menu>'+
	'<menu id="02202" url="" text="自有资源上传管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt24">'+
		'<menu id="02203" url="../ownbookinfo/index.jsp" text="资源录入" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt26"/>'+

		'<menu id="02204" url="../ownorder/index.jsp" text="自有订单管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt26"/>'+
		'<menu id="02205" url="../zyzysh/index.jsp" text="资源审核" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt27"/>'+	
		'<menu id="02206" url="../zyzyfb/index.jsp" text="资源发布" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_fabu"/>'+
		'<menu id="02207" url="../uploadManage/index.jsp" text="上传资源权限管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_quanxian"/>'+
		'<menu id="02208" url="../ownpublishclient/index.jsp" text="自有资源发布到外网" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt25"/>'+
		'<menu id="02209" url="../ownbookinfotj/index.jsp" text="自有资源统计分析" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt29"/>'+
	'</menu>'+
	'<menu id="02302" url="../wjtz/xx" text="艺术回廊" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt24">'+
		'<menu id="02303" url="../worksCollecttion/index.jsp" text="作品管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt25"/>'+
		'<menu id="02304" url="../worksComment/index.jsp" text="作品评论管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt18"/>'+
		'<menu id="09107" url="../mgword/index.jsp" text="敏感词管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_mgc"/>'+
	'</menu>'+
'</menu>'+
/* 资源库管理 结束*/

/* 活动管理 开始*/
'<menu id="04101" url="../hdglmovie/index.jsp" text="活动管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false">'+
		'<menu id="04102" url="../hdglmovie/index.jsp" text="活动管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false">'+
			'<menu id="04103" url="../activities/index.jsp" text="活动" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt42"/>'+
			/* '<menu id="04103" url="../sjtjhd/index.jsp" text="读书活动" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_readbook"/>'+
			'<menu id="04104" url="../hdgl/index.jsp" text="征文活动" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt26"/>'+
			'<menu id="04105" url="../dcwjg/index.jsp" text="调查问卷" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt27"/>'+
			'<menu id="04106" url="../zsjd/index.jsp" text="知识竞答" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt25"/>'+
			'<menu id="04107" url="../artShoot/index.jsp" text="摄影活动" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_shey"/>'+
			'<menu id="04108" url="../artPainting/index.jsp" text="书法美术" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_meishu"/>'+
			'<menu id="04109" url="../hdglmovie/index.jsp" text="微电影" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_movie"/>'+
			'<menu id="04110" url="../hdgldance/index.jsp" text="歌舞比赛" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_gewu"/>'+
			'<menu id="04111" url="../hdglm/index.jsp" text="原创音乐" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_music"/>'+
			'<menu id="04112" url="../sports/index.jsp" text="体育比赛" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt42"/>'+  */
			'<menu id="04113" url="../pwgl/index.jsp" text="评委管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt43"/>'+
		'</menu>'+
'</menu>'+
/* 活动管理 结束*/

/* 借阅管理 开始*/
'<menu id="05100" url="../tbbookdatamanage/index.jsp" text="借阅管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false">'+
	'<menu id="05101" url="../tbbookdatamanage/index.jsp" text="借阅资料管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt44">'+
		'<menu id="05102" url="../tbbookdatamanage/index.jsp" text="资料信息维护" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt47"/>'+
		/* '<menu id="05103" url="../printparm/index.jsp" text="A4打印设置" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_print"/>'+ */
	'</menu>'+
	'<menu id="05201" url="../yygl/index.jsp" text="借阅管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" >'+
		'<menu id="05202" url="../yygl/index.jsp" text="预借信息管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt50"/>'+
		'<menu id="05203" url="../jydj/index.jsp" text="借阅登记" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt51"/>'+
	'</menu>'+
	'<menu id="05301" url="../bookstorecount/index.jsp" text="借阅统计" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" >'+
		'<menu id="05302" url="../bookstorecount/index.jsp" text="书籍入库统计" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt65"/>'+
	'</menu>'+
'</menu>'+
/* 借阅管理 结束*/

/* 统计信息开始*/
'<menu id="06100" url="../stswtj/index.jsp" text="统计信息" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false">'+
	'<menu id="06101" url="../stswtj/index.jsp" text="统计信息" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" >'+
		'<menu id="06102" url="../stswtj/index.jsp" text="借阅信息统计" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt65"/>'+
		'<menu id="06103" url="../jfxxtj/index.jsp" text="积分信息统计" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt66"/>'+
	'</menu>'+
'</menu>'+
/* 统计信息 结束*/

/* 人才库管理开始*/
'<menu id="07100" url="../person_pool/index.jsp" text="人才库管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false">'+
	'<menu id="07101" url="../person_pool/index.jsp" text="人才库管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" >'+
		'<menu id="07102" url="../person_pool/index.jsp" text="人员库管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt47"/>'+
		'<menu id="07103" url="../ppoolsumtype/index.jsp" text="人才库统计" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt65"/>'+
	'</menu>'+
'</menu>'+
/* 人才库管理 结束*/

'<menu id="08100" url="" text="优秀职工书屋评选" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" >'+
	'<menu id="08101" url="" text="优秀职工书屋评选" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt47">'+
		'<menu id="08102" url="../mefp/index.jsp" text="名额分配" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_fp"/>'+
		'<menu id="08103" url="../ryzd/index.jsp" text="荣誉制定" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_ry"/>'+
		'<menu id="08104" url="../tybs/index.jsp" text="先进申报" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_sb"/>'+
		'<menu id="08105" url="../tjfx/index.jsp" text="统计分析" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt43"/>'+
		'<menu id="08106" url="../zjgl/index.jsp" text="专家管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt43"/>'+
		'<menu id="08107" url="../swps/index.jsp" text="专家评审" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt25"/>'+
		'<menu id="08108" url="../swpsjg/index.jsp" text="评审结果" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt47"/>'+
		'<menu id="08109" url="../pslsju/index.jsp" text="历史记录" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt47"/>'+
		'<menu id="08110" url="../jyzjsb/index.jsp" text="特色经验总结上报" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_shb"/>'+
		'<menu id="08111" url="../gzzjsb/index.jsp" text="工作总结上报" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt26"/>'+
	'</menu>'+
'</menu>'+

'<menu id="09100" url="../plate/index.jsp" text="宣传交流" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false">'+
	'<menu id="09101" url="../plate/index.jsp" text="宣传交流" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" >'+
		'<menu id="09102" url="../plate/index.jsp" text="板块管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_bk"/>'+
		'<menu id="09103" url="../forumwh/index.jsp" text="帖子管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_tz"/>'+
		'<menu id="09104" url="../manager/index.jsp" text="版主权限管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_suo"/>'+
		'<menu id="09105" url="../managerOperate/index.jsp" text="版主操作记录" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_bz"/>'+
		'<menu id="09106" url="../forumRecyle/index.jsp" text="帖子回收站" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_hs"/>'+
		'<menu id="09107" url="../mgword/index.jsp" text="宣传交流敏感词管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_mgc"/>'+
		'<menu id="09108" url="../blacklist/index.jsp" text="黑名单管理" targetframe="main" type="0" link="" selected="false" enable="true" noborderColor="false" iconImg="bt_hmd"/>'+
	'</menu>'+
'</menu>'+
'</xmlmenu>';
var _url="/menuxml.cmd";
top.menuData=loadData(_data,1);
if(top.menuData==null){
	//document.location=document.location;
}
top.currentMenuIndex=0;
top._menuNavIndexMove=0;
top.addtb_name="";
top.addtb_url="";
top.addtb_id="";
</script>

<script type="text/javascript">

var _currM=null;
function changeMenu(_this,_url){
	
	 
	var xmldoc=top.menuData;
	 
	var ooj=xmldoc.childNodes[top.currentMenuIndex];
	
	for(var i=0;i<ooj.childNodes.length;i++){ 
		  var onode=ooj.childNodes[i];
		  var _text=onode.getAttribute("text")+"";
		  try{
			   
				$('#leftAccordion').accordion('remove',_text); 
		  }catch(e){}
		  
		  
	}
	 
		//将样式统一设置为默认状态
		for (var i = 1; i < 100; i++) {
			var m = document.getElementById('m' + i);
			if (m) {
				//菜单为灰色
				//if(i==4||i==5||i==6){
				//	m.className = 'btnFont_disable';
				//}else{
					m.className = 'btnFont2';
				//}
				
			}
		}
	 
		_this.className = 'btnFont22';

		_currM = _this;
		
		top.currentMenuIndex = 0;

		var _numStr = _this.id + "";
		_numStr = _numStr.substr(1, _numStr.length);
		var _num = _numStr - 1;
		top.currentMenuIndex = _num;
		
		
		
		ooj=xmldoc.childNodes[top.currentMenuIndex];
		for(var i=0;i<ooj.childNodes.length;i++){ 
			  var onode=ooj.childNodes[i];
			  var _text=onode.getAttribute("text")+"";
			   
			  //var _id=  onode.getAttribute("id")+"";
			  var zNodes_sub=[];
				 cascadeTree(onode,zNodes_sub,0,[2,0]);//不全部展开
				 
				 var _html="<div style=\"padding:10px\">";
				 
				for(var _ii=0;_ii<zNodes_sub.length;_ii++){
					 
					_html+="<a id='menu_btn_"+zNodes_sub[_ii].name+"'  class=\"easyui-linkbutton\" data-options=\"plain:true,iconCls:'"+zNodes_sub[_ii].iconImg+"',size:'large',iconAlign:'top'\" style=\"width:48%;  \" onclick=\"toggle_btn(this);addTab('"+zNodes_sub[_ii].name+"','bt1_mini','"+zNodes_sub[_ii].uurl+"')\">"+zNodes_sub[_ii].name+"</a>";
					
				}
				_html+=	"</div>";
				 
				 var isSelect= (i==0);
			  
			  try{
				  $('#leftAccordion').accordion('add',{
						title: _text, 
						 
						content:_html,   
			
						selected: isSelect
					});
			  }catch(e){
				  
				  alert(e)
			  }
			 
		}
		
	}
	function menuMouseOver(_this) {

		_this.className = 'btnFont22';
	}
	function menuMouseOut(_this) {
		if (_this != _currM) {
			_this.className = 'btnFont2';
		}

	}
	var zNodes2=[];

	function createFileds() {

		var xmldoc = top.menuData;

		if (typeof xmldoc == "undefined")
			return;

		var _htmlStr = '<table width="100%" height="44px" border="0" class="kj_head_bg2"><tr valign=middle><td width="3%" align="center"> </td>';

		for (var i = 0; i < xmldoc.childNodes.length; i++) {

			var onode = xmldoc.childNodes[i];

			if (i != 0) {
				_htmlStr += '<td width="1%" align="center"><img src="images2/f_26.png" alt="" width="6" height="31" /></td>';
			}

			var selectedCls = "btnFont2";
			var onMouseOver_Str="onMouseOver=\"menuMouseOver(this)\"";
			var onMouseOut_Str="onMouseOut=\"menuMouseOut(this)\"";
			if (i == 0) {
				selectedCls = "btnFont22";
			}
			//限定是否为灰色 i ==3||i ==4||i ==5
			if(i ==100){
				  
				selectedCls ="btnFont_disable";
				onMouseOut_Str="";
				onMouseOver_Str="";
				_htmlStr += '<td width="8%" align="center"  ><table  id="m'
					+ (i + 1)
					+ '"  class="'
					+ selectedCls
					+ '" '+onMouseOver_Str+onMouseOut_Str+' ><tr align=center><td>'
					+ onode.getAttribute("text") + '</td></tr></table></td>'; 
			}else{
				
				
				
				_htmlStr += '<td width="8%" align="center"  ><a href="#" style="cursor:hand;text-decoration: none;"><table  id="m'
					+ (i + 1)
					+ '"  class="'
					+ selectedCls
					+ '" '+onMouseOver_Str+' onClick="changeMenu(this,\''
					+ onode.getAttribute("url")
					+ '\')" '+onMouseOut_Str+' ><tr align=center><td>'
					+ onode.getAttribute("text") + '</td></tr></table></a></td>'; 
			}
			 		
 
		}

		_htmlStr += '<td width="20%" align="center"></td></tr></table>';

		document.getElementById("top_row").innerHTML = _htmlStr;

	}
	function toggle_btn(_this){
		var xmldoc=top.menuData; 
		var ooj=xmldoc.childNodes[top.currentMenuIndex];
		for(var i=0;i<ooj.childNodes.length;i++){ 
			  var onode=ooj.childNodes[i];
			  var _text=onode.getAttribute("text")+"";
			    
			  var zNodes_sub=[];
				 cascadeTree(onode,zNodes_sub,0,[2,0]);//不全部展开
				 
				 var _html="<div style=\"padding:10px\">";
				for(var _ii=0;_ii<zNodes_sub.length;_ii++){
					
					var _id='menu_btn_'+zNodes_sub[_ii].name;
					 
					if(_this.id==_id){
						
						$('#'+_id).linkbutton(  {
							selected:true
						});

						
					}else{
						 
						$('#'+_id).linkbutton(  {
							selected:false
						});
						
					}
					 
				}
				
		}
		
	}
	
	

	//创建菜单
	createFileds();
	//激活第一个菜单 必须要等leftAccordion初始化后才能进行
	 
 $(document).ready(function(){
	 var url = getContextPath();
     changeMenu(document.getElementById('m1'),null);
     $.ajax({
    	 url: url + "/rest/userControl/power",
    	 type:"post",
    	 success:function(){
    	 },
    	 error:function(){
    	 }
     })
     //判断是否登录用户是否具有访问该页面的权限
     $.ajax({
    	 url: url + "/rest/userControl/userPowerManger",
    	 type:"post",
    	 success:function(ret){
    		 if(ret.resultValue.items[0] == false){					
					window.location.href="index.jsp";
					alert('未获得相应权限，无法访问该页面。');
			}
    	 },
    	 error:function(){ 
    	 }
     })
 });
 function getContextPath(){   
     var pathName = document.location.pathname;   
     var index = pathName.substr(1).lastIndexOf("/");   
     var result = pathName.substr(0,index+1);   
     index = result.substr(1).lastIndexOf("/");   
     result = result.substr(0,index+1);   
     return result;   
 }  	  
</script>

</body>



</html>